<? if($this->show==1):?>
<div class="comments">
	<div class="part-title">
		<h1>好友留言</h1>	
	</div>
<div class="comments-content">
<div class="sm-table">
<form id='add_comment_<?= $this->strtime;?>' name='add_comment_<?= $this->strtime;?>' action="/~comment.index.send_comment" method="post" >
<table>
<tr>
<td>
<div class="clearfix">&nbsp;</div>
</div>
<div id="comment_div_<?= $this->strtime;?>"></div>
<script type="text/javascript">
e_fontsize = false;
e_face = false;
e_CommentFace = true;
e_media = false;
e_bold = false;
e_InsertOrderedList = false;
e_italic = false;
e_underline = false;
e_JustifyLeft = false;
e_JustifyCenter = false;
e_JustifyRight = false;
e_font = false;
e_color = false;
e_backcolor = false;
e_img = false;
e_link = false;
e_uploadimg = false;
e_piclink = false;
e_toolbarbg = false;
comment_id_<?= $this->strtime;?> = new webEditor(
	"comment_id_<?= $this->strtime;?>" , 
	$("comment_div_<?= $this->strtime;?>") , 
	420, 
	80
);
comment_id_<?= $this->strtime;?>.init('');
</script>
<input type="hidden" name="content" value="" />
</div>
</td>
</tr>
<tr>
<td class="send-submit">
<div class="send-submit-mr">
	   <div id='add_comment_<?= $this->strtime;?>_msg' >
</div>
<span class="send-submit-mr-text">字数限制1000个</span>
<!--<input type="checkbox"/>悄悄话--><input id='res_id' name='res_id' type="hidden" value="<?= $this->res_id ?>"  />
<button class="cbtn" type="button" type="button" onclick="javascript: comments.add_comment('add_comment_<?= $this->strtime;?>', comment_id_<?= $this->strtime;?>)" >发表</button>
</div>
</td>
</tr>
</form>
</table>
</div>

<?if ($this->data):?>
<div class="comment">
<? $control_num = 0; ?>
<?foreach($this->data as $thread):?>
<?include('board_row.phtml');?>
<?php  if ($control_num >= $_SERVER['config']['control_num']) break; ?>
<?endforeach;?>
</div>
<?endif?>

</div> <!-- comment_main -->
<?endif;?>